package com.dx.wlmq.service.impl;

import com.dx.wlmq.domain.OrSupplier;
import com.dx.wlmq.mapper.OrSupplierMapper;
import com.dx.wlmq.service.OrSupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @ClassName OrSupplierServiceImpl
 * @Description TODO:
 * @Author 12994
 * @Date 2024/10/20 20:48
 * @Version 1.0
 **/
@Service("orSupplierService")
public class OrSupplierServiceImpl implements OrSupplierService {
    @Autowired
    @Qualifier("orSupplierMapper")
    private OrSupplierMapper mapper;

    @Override
    public ArrayList<OrSupplier> listAllOrSuppliers() {
        return mapper.listAllOrSuppliers();
    }

    @Override
    public OrSupplier findOrSupplierById(Long supplierId) {
        return mapper.findOrSupplierById(supplierId);
    }

    @Override
    public int addOrSupplier(OrSupplier orSupplier) {
        return mapper.addOrSupplier(orSupplier);
    }

    @Override
    public int deleteOrSupplierById(Long supplierId) {
        return mapper.deleteOrSupplierById(supplierId);
    }

    @Override
    public int updateOrSupplier(OrSupplier orSupplier) {
        return mapper.updateOrSupplier(orSupplier);
    }
}
